/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const router = {
  hidden: false,
  path: '/receivingManagement',
  component: Layout,
  redirect: '/receivingManagement/barCode-list',
  meta: {
    title: '收货管理',
    icon: 'component',
    roles: ['BusinessModuleManagement.ReceivingManagement']
  },
  children: [
    {
      hidden: false,
      path: 'barCode-list',
      name: 'ReceivingManagementBarCode',
      component: () => import('@/views/receivingManagement/barCode/list'),
      meta: { title: '条码管理', icon: '', roles: ['BarCodeManagement.BarCode'] }
    },
    {
      hidden: false,
      path: 'goodsInOrder-list',
      name: 'ReceivingManagementGoodsInOrder',
      component: () => import('@/views/receivingManagement/goodsInOrder/list'),
      meta: { title: '入库订单管理', icon: '', roles: ['GoodsInOrderManagement.GoodsInOrder'] }
    },
    {
      hidden: false,
      path: 'goodsInBill-list',
      name: 'ReceivingManagementGoodsInBill',
      component: () => import('@/views/receivingManagement/goodsInBill/list'),
      meta: { title: '入库单管理', icon: '', roles: ['GoodsInBillManagement.GoodsInBill'] }
    }
  ]
}

export default router
